FROM registry-vpc.cn-beijing.aliyuncs.com/qianjia2018/qianjia_public:node

LABEL QianJia.ZhangPeng <zanpen2000@gmail.com>

ADD package.json /tmp/package.json
RUN cd /tmp && npm config set registry http://172.18.0.1:9000/repository/node-public && npm install
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/

WORKDIR /opt/app
ADD . /opt/app

EXPOSE 9080

CMD ["npm","run","dev"]
